forum

home / developersection / forums / how to get cumulative frequency in sql server

How to get Cumulative frequency in SQL Server

Anonymous User 6487 10-Sep-2012
Hello Everyone,
I've a small requirement; Actually I've a table which has three column name such as ID, Product_Name and Product_Quantity, these columns contains value like:
ID                         Product_Name                     Product_Quantity
1                              Parle G                                     10
2                              Hair Oil                                    20
3                              Soap                                         30
4                              Shampoo                                  49

In this table I want to add another column name like Product_CumulativeValue which contains cumulative value of Product_Quantity column, so can you tell me how to find out the cumulative value of Product_Quantity column.

Please resolve my problem as soon as possible.
Thanks in advance!

Updated on 11-Sep-2012

I am a content writter !


Message
Can you answer this question?

Answer

2 Answers

Liked By